package com.syncomponents.sample.json;

import com.syncomponents.bean.request.sample.SampleMessage;
import com.syncomponents.bean.response.sample.User;
import com.syncomponents.context.annotation.Action;
import com.syncomponents.context.annotation.SynComponent;

@SynComponent(type = "test")
public class PepoleRequest {

    @Action("get.user")
    public User getUser(SampleMessage message) {
        User user = new User();
        user.setName(message.getName() + "被调用");
        user.setSex(message.getSex());
        return user;
    }
}
